#!/usr/bin/env python3
# -*- coding: utf-8 -*-

s = (x * x for x in range(5))
for x in s:
    print(x)
# print(s)
# s = [x * x for x in range(5)]
# print(s)

def fib(max):
    n,a,b = 0,0,1
    while n < max:
        yield b
        a,b = b, a + b
        n = n + 1
    return 'done'
f = fib(10)
print('fib(10):',f)
for x in f:
    print(x)
